<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<title>后台管理</title>
</head>
<body class="body_ifm">
<div class="infoboxp">
<div class="tabs_info">
    <ul>
      <li> <a href="index.php?m=database">备份数据</a></li>
      <li class="curr"><a href="index.php?m=database&c=backin">恢复数据</a></li>
      <li><a href="index.php?m=database&c=optimizing">优化数据</a></li>
      <li><a href="index.php?m=database&c=clear">数据清理</a></li>
    </ul>
  </div>
  <div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
    <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
    <div class="admin_new_tip_list_cont">
      <div class="admin_new_tip_list">该页面展示了网站数据信息，可对数据进行编辑修改操作。</div>
    </div>
  </div>
  <div class="clear"></div>
 

<div class="table-list mt10">
<div class="admin_table_border">
<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
 <table width="100%">
	<thead>
		<tr class="admin_table_top">
			<th align="left">文件名</th>
			<th align="left">时间</th>
			<th align="left">数据库名称</th>
			<th align="left" class="admin_table_th_bg">操作</th>
		</tr>
	</thead>
	<tbody>
    {yun:}foreach item=v from=$sqlarr{/yun}
    <tr align="left">
    	<td align="left" class="td1">{yun:}$v.name{/yun}</td>
    	<td class="ud" align="left">{yun:}$v.time{/yun}</td>
   	 	<td class="od" align="left">{yun:}$v.dbname{/yun}</td>
    	<td>
        <a href="javascript:void(0);" onclick="backin('index.php?m=database&c=backincheck&ver={yun:}$v.version{/yun}&mypath={yun:}$v.name{/yun}')" class="admin_new_c_bth">导入</a>
        <a href="javascript:void(0)" onclick="layer_del('确定要删除？', 'index.php?m=database&c=del&sql={yun:}$v.name{/yun}');" class="admin_new_c_bth admin_new_c_bth admin_new_c_bth_sc">删除</a>
        </td>
  </tr>
  {yun:}/foreach{/yun}
  </tbody>
  </table>
</div>
</div>
</div>
<input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
<script>
function backin(url){
	//parent.layer.load('数据恢复中，请稍候...',0);
	location.href=url+'&pytoken='+pytoken;
	/*var pytoken = $('#pytoken').val();
	$.get(url+'&pytoken='+pytoken,function(data){
		var data=eval('('+data+')');
		if(data.url=='1'){
			parent.layer.msg(data.msg, Number(data.tm), Number(data.st),function(){location.reload();});return false;
		}else{
			parent.layer.msg(data.msg, Number(data.tm), Number(data.st),function(){location.href=data.url;});return false;
		}
	});*/
}
</script>
</body>
</html>